package com.chinasoft.back.mapper;

import com.chinasoft.back.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 中软zhang
 * @create 2023-08-28 14:11
 */
public interface UserMapper {

    @Select("select * from ev_users where username = #{username}")
    User selectByName(String username);

    @Select("select * from ev_users")
    List<User> selectAll();
}
